import request from "./request";

export function getUserInfoApi() {
    return request({
        url: '/auth/user_info' ,
        method: 'get',
    })
}


export function loginApi(params: any) {
    return request({
        url: '/auth/login' ,
        method: 'post',
        params
    })
}

export function registerApi(params: any) {
    return request({
        url: '/auth/register' ,
        method: 'post',
        params
    })
}

export function getCaptchaApi() {
    return request({
        url: "/captcha/get" ,
        method: 'GET',
    })
}

export function loginOutApi( ) {
    return request({
        url: '/auth/logout' ,
        method: 'post',
    })
}


